<?php

function assoc2Conditionals(&$item, $key) {
	if ($item == "NULL") {
		$item = "`$key` = $item";
	} else {
		$item = "`$key` = \"$item\"";
	}
	
}

function highlightText($text) {
	return "<p class=\"ui-state-highlight\"><span class=\"ui-icon ui-icon-info\" style=\"float: left; margin-right: 0.3em;\"></span><strong>Attention:</strong>$text <span class=\"ui-icon ui-icon-close\" style=\"float: right; margin-right: 0.3em;\"></span></p>";
}

function errorText($text) {
	return "<p class=\"ui-state-error\"><span class=\"ui-icon ui-icon-alert\" style=\"float: left; margin-right: 0.3em;\"></span><strong>Alert:</strong>$text <span class=\"ui-icon ui-icon-close\" style=\"float: right; margin-right: 0.3em;\"/></p>";
}